package com.second.app.thread.p_c_callwait;

/**
 * @Author soul yzg
 * @Date 2021/1/26 7:28
 * 努力学习 天天进步
 */
public class ThreadP extends Thread {
    private Produce produce;

    public ThreadP(Produce produce) {
        this.produce = produce;
    }

    @Override
    public void run() {
        while (true) {
            produce.setValue();
        }
    }
}
